<template>
    <div class="add">
        <div class="add1"></div>
        <div class="add2" @click="submit"></div>
    </div>
</template>

<script>
import api from '../../static/js/api.js'
export default {
    methods:{
        submit(){
             if(!this.$store.state.nologin){
                    api.contactUs({
                        phone: this.$store.state.userinfo.mobile,
                        name: "首页新人活动预约咨询"
                    })
                    .then(res => {
                        if (res.code == 1) {
                        this.$alert('预约成功，稍后会有理财师与您联系，谢谢！');
                        } else {
                        this.$alert(res.msg);
                        }
                    });
                }else{
                    this.$store.commit("changeshowlogin",true)
                }
        },
        test(){
            if(this.login){
               this.$store.commit('changenshowlogin',true)
            }else{
                
            }
        }
    },
    computed:{
       
    },
    mounted(){
        
    }

}
</script>


<style scoped>

.add1{
    background: url("http://img3.tqcaifu.com/add5/add5_10.jpg") no-repeat center center;
    height: 801px;
}
.add2{
    background: url("http://img3.tqcaifu.com/add5/add5_06.jpg") no-repeat center center;
    height: 129px;
    cursor: pointer;
}

</style>
